<label th:for="*{fields['__${field.name}__'].value}" th:classappend="${field.required ? 'required' : ''}">
    <span th:utext="#{${field.friendlyName}}"></span>
<span th:replace="components/fieldTooltip" ></span>
</label>
<div>
    <input class="datetimepicker" type="text" th:field="*{fields['__${field.name}__'].value}"
           autocomplete="off"
           th:disabled="${field.readOnly}"
           th:classappend="${group.column == 0} ? 'date-field'"/>
</div>

<span class="error" th:errors="*{fields['__${field.name}__'].value}" ></span>
